package com.xinruke.hostels.zuul.vo;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;


/**
 * @ClassName WhiteLoginURLVO
 * @CreateDate 2019/6/17
 * @Author FengXinQiang
 * @Version V1.0.0.0
 * @Decription 不需要登录的地址
 */
@Component
@ConfigurationProperties(prefix = "login")
@PropertySource("classpath:loginUrlWhite.properties")
public class LoginUrlWhiteVO {
    /**
     * 是否开启登录验证
     */
    @Value("${login.validate.enabled}")
    private boolean enabled;
    /**
     * 白名单地址
     */
    @Value("${login.validate.white.url}")
    private String whiteUrl;
    /**
     * 白名单后缀
     */
    @Value("${login.validate.white.suffix}")
    private String whiteSuffix;

    public boolean isEnabled() {
        return enabled;
    }

    public void setEnabled(boolean enabled) {
        this.enabled = enabled;
    }

    public String getWhiteUrl() {
        return whiteUrl;
    }

    public void setWhiteUrl(String whiteUrl) {
        this.whiteUrl = whiteUrl;
    }

    public String getWhiteSuffix() {
        return whiteSuffix;
    }

    public void setWhiteSuffix(String whiteSuffix) {
        this.whiteSuffix = whiteSuffix;
    }
}
